package com.yfp.client.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yfp.client.domain.Position;
import com.yfp.client.service.PositionService;
import com.yfp.client.mapper.PositionMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 * @description 针对表【position(点位表)】的数据库操作Service实现
 * @createDate 2024-06-20 17:04:33
 */
@Service
public class PositionServiceImpl extends ServiceImpl<PositionMapper, Position> implements PositionService {

    @Resource
    private PositionMapper positionMapper;

    /**
     * 根据machineId获取收益账户
     *
     * @param machineId
     * @return
     */
    @Override
    public Position listByMachineId(String machineId) {
        return positionMapper.listByMachineId(machineId);
    }

    @Override
    public List<Position> findListByIdIn(List<String> ids) {
        return positionMapper.findListByIdIn(ids);
    }
}




